package com.ecas.core.base.manager.impl;

import com.ecas.core.base.manager.MongoManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;

import java.util.List;

/**
 * @author devonmusa
 * @description:
 * @datetime 2018/6/8 2:32
 * @since 1.0.0
 */
//TODO
public class AbstractMongoManager<M extends MongoTemplate,T> implements MongoManager<T> {

    @Autowired
    private  M mongo;


    @Override
    public int save(T t) {
        mongo.save(t);
        return 0;
    }

    @Override
    public int saveBatch(List<T> list) {
        return 0;
    }

    @Override
    public int removeById(Long id) {
        return 0;
    }

    @Override
    public int removeBatch(List<Long> idList) {
        return 0;
    }

    @Override
    public int removeByParam(T t) {
        return 0;
    }

    @Override
    public int modify(T t) {
        return 0;
    }

    @Override
    public int modifyBatch(List<T> list) {
        return 0;
    }

    @Override
    public T getById(Long id) {
        return null;
    }

    @Override
    public List<T> listByObject(T t) {
        return null;
    }

    @Override
    public List<T> listByIds(List<Long> ids) {
        return null;
    }

    @Override
    public List<T> listPage(T t, Integer size, Integer offset) {
        return null;
    }

    @Override
    public int countParam(T t) {
        return 0;
    }
}
